﻿@{
    ViewBag.Title = "Download";
}
@section scripts{
    <script src="/Scripts/work/jquery.fileDownload.js"></script>
}
<h2>Download</h2>
<input type="button" name="download" value="Get exel file" />

<script>
    $('[name = "download"]').click(function () {
        $.fileDownload("/Home/GetFile", {httpMethod2: "GET"});
    });
</script>